﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SFR
{
    public partial class Login : Form
    {
        MongoDbHelper _db;

        public Login(MongoDbHelper db)
        {
            InitializeComponent();
            _db = db;
        }

        private void buttonConnect_Click(object sender, EventArgs e)
        {
            _db.Initilaize("mongodb://" + textBoxServer.Text);
        }
    }
}
